//
//  NSURL+Extension.m
//  JKPlayerKit
//
//  Created by 王冲 on 2019/2/11.
//  Copyright © 2019年 JK科技有限公司. All rights reserved.
//

#import "NSURL+Extension.h"

@implementation NSURL (Extension)

-(NSURL *)stremingURL{
    
    NSURLComponents *components = [NSURLComponents componentsWithString:self.absoluteString];
    // 更换协议
    components.scheme = @"sreaming";
    return components.URL;
    
}

/**
 http 协议
 
 @return 返回一个  http 协议的视频链接
 */
-(NSURL *)httpURL{
    
    NSURLComponents *components = [NSURLComponents componentsWithString:self.absoluteString];
    // 更换协议
    components.scheme = @"http";
    return components.URL;
}
@end
